package com.adityayadav.mini.server;

import java.nio.charset.Charset;

public class WebSocketServerCrossDomain {
	private static final String NEWLINE = "\r\n";

    public static byte[] getContent(String webSocketLocation) {
        return (
        		"<?xml version=\"1.0\"?>"+ NEWLINE +
        		"<!DOCTYPE cross-domain-policy SYSTEM \"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\">"+ NEWLINE +
        		"<cross-domain-policy>"+ NEWLINE +
        		"<allow-http-request-headers-from domain=\"*\" headers=\"*\"/>"+ NEWLINE +
        		"</cross-domain-policy>" + NEWLINE).getBytes(Charset.forName("US-ASCII"));
    }
}
